﻿package mortal.common.cd
{
    import flash.utils.*;

    public class KeyBoardCd extends Object
    {
        private static var _keyMap:Dictionary = new Dictionary();

        public function KeyBoardCd()
        {
            return;
        }// end function

        public static function isKeyDown(param1:int) : Boolean
        {
            var _loc_2:* = _keyMap[param1];
            if (getTimer() > _loc_2)
            {
                return true;
            }
            return false;
        }// end function

        public static function keyUp(param1:int) : void
        {
            _keyMap[param1] = getTimer() + 200;
            return;
        }// end function

    }
}
